import javax.swing.tree.TreeNode;

public class Text {
    public static void main(String[] args) {
        BinaryTree3 binaryTree3 = new BinaryTree3();
        BinaryTree3.TreeNode root = binaryTree3.createTree();
        System.out.println(binaryTree3.treeNodeSum(root));
        System.out.println(binaryTree3.leafNode(root));
        System.out.println(binaryTree3.getHeight(root));
        System.out.println(binaryTree3.kLevelNode(root, 1));
        System.out.println(binaryTree3.kLevelNode(root, 2));
        System.out.println(binaryTree3.kLevelNode(root, 3));
        System.out.println(binaryTree3.kLevelNode(root, 4));
        System.out.println(binaryTree3.kLevelNode(root, 5));
        BinaryTree3.TreeNode treeNode = binaryTree3.valueExistOrNot(root,10);
        System.out.println(treeNode);
    }
}
